<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01-第一个案例</title>
    <script src="../js/vue.js"></script>
    <script src="../element-ui/lib/index.js"></script>
    <link rel="stylesheet" href="../element-ui/lib/theme-chalk/index.css">

</head>
<body>
<!--1. 准备一个容器-->
<div id="app">
    <el-button type="success" icon="el-icon-plus" @click="fun">登录</el-button>
    <el-dialog :visible.sync="flag">
        <h1>Hellow-ElementUi</h1>
    </el-dialog>
</div>
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            flag:false,
        },
        methods:{
            fun:function () {
                this.flag=true;
            }
        }
    });
</script>

</body>
</html>